import request from '@/utils/request'

// 查询岗位列表
export function listPost(query) {
  return request({
    url: '/system/college/list',
    method: 'get',
    params: query
  })
}

export function getPost(collegeId) {
  return request({
    url: '/system/college/' + collegeId,
    method: 'get'
  })
}

export function addPost(data) {
  return request({
    url: '/system/college',
    method: 'post',
    data: data
  })
}
export function updatePost(data) {
  return request({
    url: '/system/college',
    method: 'put',
    data: data
  })
}

export function delPost(collegeId) {
  return request({
    url: '/system/college/' + collegeId,
    method: 'delete'
  })
}
export function contrast(name,name1) {
  return request({
    url: '/system/schoolContrast/' +name+'/'+name1,
    method: 'get'
  })
}
export function collegeFind(name) {
  return request({
    url: '/system/college/find/' +name,
    method: 'get'
  })
}


